<?php global $site_info; ?>
<div class="span10" id="_content" style="background: #fff;margin-left: 2px">

<table width="100%" style="margin: 0;padding: 0;">
<tr>
        <td class="hzbar"></td>
        <td style="padding: 10px 15px;">
        <?php echo $this->session->flashdata('_message'); ?>
            <?php echo form_open('administrator/setting/general/save','class=form-horizontal') ?>
    <fieldset>
    <legend>General Setting</legend>
        <div class="control-group">
            <label class="control-label" for="input01">Site title</label>
            <div class="controls">
                <input type="text" class="input-xlarge" value="<?php echo $site_info['site_title'] ?>" name="site_title" id="site_title" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Tagline</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="tagline" value="<?php echo $site_info['tagline'] ?>" id="tagline" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Email Address</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="email_address" value="<?php echo $site_info['email_address'] ?>" id="email" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Register</label>
            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox"  value="1" id="register"  <?php echo $site_info['register']==1?"checked=''":"" ?> name="register"/>
                Anyone can register
              </label>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">New User Default Role</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="user_role" value="<?php echo $site_info['user_role'] ?>" id="user_role" />
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Date Format</label>
            <div class="controls">
            
                    <input type="text" value="<?php echo  $site_info['date_format'] ?>" name="date_format"/> <span>(%d/%m/%Y)</span>
             
                             
            </div>
        </div>
         <div class="control-group">
            <label class="control-label" for="input01">Time Format</label>
            <div class="controls">
            
                    <input type="text" value="<?php echo  $site_info['time_format'] ?>" name="time_format"/> <span>(%h-%m)</span>
             
                             
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Metakey</label>
            <div class="controls">
            
                    <input type="text" value="<?php echo  $site_info['metakey'] ?>" name="metakey"/>
             
                             
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Metadesc</label>
            <div class="controls">
            
                    <input type="text" value="<?php echo  $site_info['metadesc'] ?>" name="metadesc"/>
             
                             
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Payment Online</label>
            <div class="controls">
            <select class="input-mini" name="is_payment">
                <option value="1"  <?php echo $site_info['is_payment']=="1"?"selected='selected'":"" ?> >Yes</option>
                <option value="0" <?php echo $site_info['is_payment']=="0"?"selected='selected'":"" ?>>No</option>
                
            </select>             
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Payment with</label>
            <div class="controls">
            <label class="radio">
                    <input type="radio"  value="baokim" disabled="" name="paygate"/> Payment Online using <a href="http://baokim.vn" target="_blank">BaoKim</a>
              </label>
              <label class="radio">
                    <input type="radio"  value="nganluong" checked="" name="paygate"/> Payment Online using <a href="http://nganluong.vn" target="_blank">Ngan Luong</a>
              </label>             
              <label class="radio">
                    <input type="radio"  value="paypal" disabled="" name="paygate"/> Payment Online using <a href="http://paypal.com" target="_blank">Paypal</a>
              </label>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">Merchant site code</label> 
            
            <div class="controls">
                <input type="text" class="input-xlarge" value="<?php echo $site_info['merchant_code'] ?>" name="merchant_code" id="merchant_code" />
            </div>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="input01">secure_pass</label>
            
            <div class="controls">
                <input type="text" class="input-xlarge" value="<?php echo $site_info['secure_pass'] ?>"  name="secure_pass" id="secure_pass" />
            </div>
            </div>
        <div class="control-group">
            <label class="control-label" for="input01">Payment Verify Code</label>
            
            <div class="controls">
                <input type="text" class="input-xlarge" value="<?php echo $site_info['payment_verify_code'] ?>"  name="payment_verify_code" id="payment_verify_code" />
            </div>
            </div>
            <div class="control-group">
            <label class="control-label" for="input01">Email Receiver</label>
            
            <div class="controls">
                <input type="text" class="input-xlarge" value="<?php echo $site_info['receiver_email'] ?>"  name="receiver_email" id="receiver_email" />
            </div>
            </div>
            <div class="control-group">
            <label class="control-label" for="input01">Order Prefix</label>
            
            <div class="controls">
                <input type="text" class="input-xlarge" value="<?php echo $site_info['order_prefix'] ?>"  name="order_prefix" id="order_prefix" />
            </div>
            </div>
            <div class="control-group">
            <label class="control-label" for="input01">Footer</label>
            
            <div class="controls">
                <textarea name="footer" id="post_desc"><?php echo $site_info['footer'] ?>"</textarea>
            </div>
            </div>
            <input type="submit" class="btn btn-primary" value="Save" />        
    </fieldset>
    </form>
        </td>
    </tr>
</table>
</div>